xen/arm: p2m: Differentiate cacheable vs non-cacheable MMIO
authorJulien Grall <julien.grall@arm.com>
Thu, 28 Jul 2016 14:20:08 +0000 (15:20 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 29 Jul 2016 00:41:40 +0000 (17:41 -0700)
commit0cef6b81f97010a13bbd7437b036619cecd56f1f
tree52e3e31334427fd60cbba2b560a0b559729789f5
parentca8e5ddaa416983dd2b5840cb86eb768b8ebf8e9
xen/arm: p2m: Differentiate cacheable vs non-cacheable MMIO

Currently, the p2m type p2m_mmio_direct is used to map in stage-2
cacheable MMIO (via map_regions_rw_cache) and non-cacheable one (via
map_mmio_regions). The p2m code is relying on the caller to give the
correct memory attribute.

In a follow-up patch, the p2m code will rely on the p2m type to find the
correct memory attribute. In preparation of this, introduce
p2m_mmio_direct_nc and p2m_mimo_direct_c to differentiate the
cacheability of the MMIO.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/p2m.c
xen/include/asm-arm/p2m.h